import Mock from 'mockjs'

// 车次管理表格数据
Mock.mock('/api/train_list', 'get', {
    'list|10': [{
        'key|+1': 1,
        'train_num|10-100': 10,
        'type|1': ['高铁', '动车'],
        'name': '@cname',
        'all_seat|500-600': 500,
        'carriage|10-20': 10,
        'ride|650-700': 650,
        'create_time': '@datetime()',
        'state|1': [true, false]
    }]
})

Mock.mock('/api/station_list', 'get', {
    'list|10': [{
        'key|+1': 1,
        'station': '@city',
        'state|1': [true, false]
    }]
})